<?php
class Main_model extends CI_Model {

	public function __construct()
	{
		$this->load->database();
	}

	public function get_main()
	{
		//$query = $this->db->get('replays');

		$sql = "SELECT * FROM replays INNER JOIN actions ON actions.replay_id=replays.id"; 

		$query = $this->db->query($sql);

		return $query->result_array();
	}
}

?>